

package ro.ase.catalog.security.dao;

import ro.ase.catalog.beans.Role;
import ro.ase.catalog.dao.IGenericDAO;

import java.util.List;


public interface IRoleDAO extends IGenericDAO<Role, Integer> {
    

    public List<Role> findByNameVaguePerPage(String name, int start, int limit);
    

    public Integer findByNameVagueCount(String name);


    public Role findByRolename(String rolename);
    

    public List<Role> findByUserIdPerPage(int userId, int start, int limit);
    

    public Integer findByUserIdCount(int userId);
    

    public List<Role> findByAuthorityIdPerPage(int authorityId, int start, int limit);
    

    public Integer findByAuthorityIdCount(int authorityId);

}
